package zero.tech.games.log.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Select;

import zero.tech.games.entity.log.LogWaterRewardGet;

public interface LogWaterRewardGetMapper {

	void insertBatch(List<LogWaterRewardGet> list);

	@Select("select count(1) from log_water_reward_get where club_id=#{club_id} and uid=#{uid} and create_stamp between #{begin} and #{end}")
	int totalCount(int club_id, int uid, Date begin, Date end);

	@Select("select * from log_water_reward_get where club_id=#{club_id} and uid=#{uid} and create_stamp between #{begin} and #{end} limit #{start},#{pageLength}")
	List<LogWaterRewardGet> listWaterRewardGetByPage(int club_id, int uid, int start, int pageLength, Date begin,
			Date end);

}
